package com.example.elmmerchants.Shop_Activity;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

import com.example.elmmerchants.R;

public class Setting_Shop_Activity_Page extends AppCompatActivity {

    String email, shop_name;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting_shop_activity_page);

        email = getIntent().getStringExtra("email");
        shop_name = getIntent().getStringExtra("shop_name");

        set_page(new Activity_Center_Page(email, shop_name));
    }

    public void set_page(Fragment fragment) {
        FragmentManager fragmentManager = getSupportFragmentManager();
        FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
        fragmentTransaction.replace(R.id.set_activity_page, fragment).commit();
    }
}